package com.example.sls.service.impl.field;

import com.example.sls.pojo.field.FieldMaintenance;
import com.example.sls.dao.field.FieldMaintenanceDao;
import com.example.sls.service.intserfaces.field.FieldMaintenanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 场地维护记录表(FieldMaintenance)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:09
 */
@Service
public class FieldMaintenanceServiceImpl implements FieldMaintenanceService {
  @Autowired
  FieldMaintenanceDao fieldMaintenanceDao;

  @Override
  public FieldMaintenance queryById(Integer id) {
    return fieldMaintenanceDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return fieldMaintenanceDao.deleteById(id);
  }

  @Override
  public int update(FieldMaintenance fieldMaintenance) {
    return fieldMaintenanceDao.update(fieldMaintenance);
  }

  @Override
  public int insert(FieldMaintenance fieldMaintenance) {
    return fieldMaintenanceDao.insert(fieldMaintenance);
  }

  @Override
  public long count() {
    return fieldMaintenanceDao.count();
  }

  @Override
  public List<FieldMaintenance> queryAllByLimit(FieldMaintenance fieldMaintenance, Integer pageSize, Integer offset) {
    return fieldMaintenanceDao.queryAllByLimit(fieldMaintenance, pageSize, offset);
  }
}
